package cn.guxinhu.billsystem.user.service.impl;

import cn.guxinhu.billsystem.user.mapper.IUserMapper;
import cn.guxinhu.billsystem.user.service.IUserDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Guxinhu
 * @create 2021-06-21 15:42
 */
@Service
public class UserDeleteServiceImpl implements IUserDeleteService {
    /**
     * @Description: 删除的Servier层
     * @Method: DeleteContrller.delete()
     * @Param: iMapper(IMapper) -- mybatis(sql)映射接口
     * ids(Integer[]) -- 前端传入的数组
     * @Return:
     * @Author: Guxinhu
     * @Date Created in 2020/08/19 11:37
     */
    @Autowired
    private IUserMapper userMapper;

    public void delete(String[] ids) {
        userMapper.deleteUser(ids);
    }
}
